package com.yonyougov.devops.cruxcisupport.appenv.dto.port;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;

@Data
@ApiModel(value = "新增环境映射端口")
public class AppEnvPortAddRequestDto extends BaseRequestDto {
    @ApiModelProperty(required = true, name = "外部映射端口")
    private Integer mappingPort;

    @NotEmpty
    @ApiModelProperty(required = true, name = "名称")
    private String name;

    @NotNull
    @ApiModelProperty(required = true, name = "应用内部端口")
    private Integer port;

    @NotNull
    @ApiModelProperty(required = true, name = "应用环境的主键")
    private BigInteger appEnvId;

    //    @NotNull
    @ApiModelProperty(required = true, name = "环境Id")
    private BigInteger envId;

    //    @NotNull
    @ApiModelProperty(required = true, name = "应用Id")
    private BigInteger appId;

}
